-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add catalog #4915
base: master
Are you sure you want to change the base?
add catalog #4915
Conversation
mmromanova
commented
Dec 10, 2024
- DEMO LINK
- TEST REPORT LINK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your hard work on this project! 😊 While you've made great progress, there are a few critical issues that need to be addressed before we can approve the pull request. Specifically, there are several SCSS variables used across your stylesheets that are not defined, which can lead to compilation errors and affect the functionality of your styles. Additionally, the card width does not meet the specified requirement, and the data-qa
attribute is applied incorrectly. Please address these issues to ensure your code meets the task requirements. Keep up the great work, and I'm confident you'll have this sorted in no time! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review
button in the Reviewers tab.
src/index.html
Outdated
</div> | ||
<button class="to-buy" data-qa="card-hover"> BUY </button> | ||
</section> | ||
|
||
<section class="product"> | ||
<div class="card" data-qa="card"> | ||
<div class="card__name"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__product-code"> | ||
Product code: 195434 | ||
</div> | ||
</div> | ||
<div class="rate"> | ||
<div class="rate--stars rate--stars-4"> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
</div> | ||
<div class="rate--reviews"> | ||
Reviews: 5 | ||
</div> | ||
</div> | ||
<div class="price"> | ||
<div class="price--label"> | ||
Price: | ||
</div> | ||
<div class="price--value"> | ||
$2,199 | ||
</div> | ||
</div> | ||
<button class="to-buy" data-qa="card-hover"> BUY </button> | ||
</section> | ||
|
||
|
||
<section class="product"> | ||
<div class="card" data-qa="card"> | ||
<div class="card__name"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__product-code"> | ||
Product code: 195434 | ||
</div> | ||
</div> | ||
<div class="rate"> | ||
<div class="rate--stars rate--stars-4"> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
</div> | ||
<div class="rate--reviews"> | ||
Reviews: 5 | ||
</div> | ||
</div> | ||
<div class="price"> | ||
<div class="price--label"> | ||
Price: | ||
</div> | ||
<div class="price--value"> | ||
$2,199 | ||
</div> | ||
</div> | ||
<button class="to-buy" data-qa="card-hover"> BUY </button> | ||
</section> | ||
|
||
<section class="product"> | ||
<div class="card" data-qa="card"> | ||
<div class="card__name"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</div> | ||
<div class="card__product-code"> | ||
Product code: 195434 | ||
</div> | ||
</div> | ||
<div class="rate"> | ||
<div class="rate--stars rate--stars-4"> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
<div class="rate--stars__star"></div> | ||
</div> | ||
<div class="rate--reviews"> | ||
Reviews: 5 | ||
</div> | ||
</div> | ||
<div class="price"> | ||
<div class="price--label"> | ||
Price: | ||
</div> | ||
<div class="price--value"> | ||
$2,199 | ||
</div> | ||
</div> | ||
<button class="to-buy" data-qa="card-hover"> BUY </button> | ||
</section> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The product sections are repeated with identical content. Consider using a template system or JavaScript to dynamically generate this content to avoid redundancy and make maintenance easier.
padding-top: 50px; | ||
padding-inline: 40px; | ||
display: grid; | ||
grid-template-columns: repeat(var(--column-count), $card-width); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $card-width
is used here, but it is not defined in this file. Ensure that $card-width
is defined somewhere in your SCSS files before it is used.
.product { | ||
margin-top: 1px; | ||
margin-left: 1px; | ||
width: $card-width; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $card-width
is used here, but it is not defined in this file. Ensure that $card-width
is defined somewhere in your SCSS files before it is used.
margin-top: 1px; | ||
margin-left: 1px; | ||
width: $card-width; | ||
height: $card-height; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $card-height
is used here, but it is not defined in this file. Ensure that $card-height
is defined somewhere in your SCSS files before it is used.
margin-left: 1px; | ||
width: $card-width; | ||
height: $card-height; | ||
border: 1px solid $white_color; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $white_color
is used here, but it is not defined in this file. Ensure that $white_color
is defined somewhere in your SCSS files before it is used.
display: flex; | ||
justify-content: space-between; | ||
margin-top: 24px; | ||
padding-left: $padding-left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $padding-left
is used here, but it is not defined in this file. Ensure that $padding-left
is defined somewhere in your SCSS files before it is used.
padding-left: $padding-left; | ||
|
||
&--label { | ||
color: $text-color; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $text-color
is used here, but it is not defined in this file. Ensure that $text-color
is defined somewhere in your SCSS files before it is used.
} | ||
|
||
&--value { | ||
color: $text-color-strong; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $text-color-strong
is used here, but it is not defined in this file. Ensure that $text-color-strong
is defined somewhere in your SCSS files before it is used.
@@ -0,0 +1,30 @@ | |||
.rate { | |||
padding-left: $padding-left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $padding-left
is used here, but it is not defined in this file. Ensure that $padding-left
is defined somewhere in your SCSS files before it is used.
} | ||
|
||
&--reviews { | ||
color: $text-color-strong; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $text-color-strong
is used here, but it is not defined in this file. Ensure that $text-color-strong
is defined somewhere in your SCSS files before it is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job on addressing many of the issues in your code! 🎉 While there are still a few areas that need attention, such as ensuring the data-qa
attributes are applied consistently and correcting the card width to 200px, your progress is commendable. Additionally, make sure all SCSS variables are defined to avoid compilation errors.
Remember, these improvements are crucial for the functionality and maintainability of your code. Keep up the good work, and continue learning from these experiences to enhance your coding skills! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
<a | ||
href="#laptops" | ||
class="menu-item" | ||
data-qa="nav-hover" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The data-qa
attribute is applied to the 'Laptops & Computers' menu item. Ensure that this attribute is applied consistently across all menu items if required by the task.
</header> | ||
|
||
<main class="main"> | ||
<section class="product" data-qa="card"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The data-qa
attribute is applied to the section with class product
. Ensure that this attribute is applied consistently across all product sections if required by the task.
|
||
|
||
<section class="product"> | ||
<div class="card" data-qa="card"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The data-qa
attribute is applied to the card
div. Ensure that this attribute is applied consistently across all card divs if required by the task.
|
||
|
||
.main { | ||
padding-top: $main-padding-top; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $main-padding-top
is used but not defined. Please define this variable to avoid compilation errors.
|
||
.main { | ||
padding-top: $main-padding-top; | ||
padding-inline: $main-padding-inline; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $main-padding-inline
is used but not defined. Please define this variable to avoid compilation errors.
display: flex; | ||
justify-content: space-between; | ||
margin-top: 24px; | ||
padding-left: $padding-left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $padding-left
is used but not defined. Please define this variable to avoid compilation errors.
padding-left: $padding-left; | ||
|
||
&--label { | ||
color: $text-color; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $text-color
is used but not defined. Please define this variable to avoid compilation errors.
} | ||
|
||
&--value { | ||
color: $text-color-strong; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $text-color-strong
is used but not defined. Please define this variable to avoid compilation errors.
@@ -0,0 +1,30 @@ | |||
.rate { | |||
padding-left: $padding-left; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $padding-left
is used but not defined. Please define this variable to avoid compilation errors.
} | ||
|
||
&--reviews { | ||
color: $text-color-strong; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable $text-color-strong
is used but not defined. Please define this variable to avoid compilation errors.